//
//  DBHeartRate.h
//  CareRingApp
//
//  Created by Linktop on 2022/6/7.
//

#import <Foundation/Foundation.h>
#import "DBValueSuper.h"
#import "HMPdfShareProtoal.h"

NS_ASSUME_NONNULL_BEGIN
extern const float HR_LOW;
extern const float HR_HIGH;

@interface DBHeartRate : DBValueSuper

@property(assign, nonatomic)BOOL isSportMode;

+(void)queryBy:(NSString * _Nonnull)macAddress
         Begin:(NSDate *)beginDate
           End:(NSDate *)endDate
OrderBeTimeDesc:(BOOL)isDesc
      Cpmplete:(void(^)(NSMutableArray<DBHeartRate *> *results,
                        NSNumber *maxHr, NSNumber *minHr,
                        NSNumber *avgHr))cmpBlk;


//+(void)queryMutiDataGroupHours:(NSString * _Nonnull)macAddress DayDate:(NSDate *)dayDate   Cpmplete:(void(^)(NSMutableArray<NSDictionary *> * res) )cmpBlk;





//- (NSArray<NSString *> *)pdfShowValuerStrings:(NSInteger)index;

-(BOOL)sleepHeartRateFix:(float)motion;

///// 计算静息心率
///// - Parameters:
/////   - begin: 开始时间
/////   - end: 结束时间
/////   - account: 账号
/////   - cmpBlk: 回调
//+(void)restingHeartRateForm:(NSDate *)begin End:(NSDate *)end Account:(NSString *)account CMP:(void(^)(NSNumber * _Nullable restingHr) )cmpBlk;

@end

NS_ASSUME_NONNULL_END
